package com.myproject.classload;

public class Teacher extends Human{

    public Hair hair = new Hair();
    public static Student student = new Student();
    public static int age = 25;
    public static ClassRoom classRoom = new ClassRoom();

    static {
        System.out.println("Teacher static code");
        age = 30;
    }

    {
        System.out.println("Teacher code");
    }

    public Teacher() {
        System.out.println("Teacher construct");
    }

    public Teacher(String name) {

        super(name);
    }

    public static void start(){
        System.out.println("全体起立");
        System.out.println("我的年龄是："+age);
    }
}
